const HtmlPlugin = require('html-webpack-plugin')
const CleanPlugin= require('clean-webpack-plugin')
module.exports={
    mode: 'development',
    entry: {
        main: __dirname+ '/src/main.js'
    },
    output: {
        filename:'[name].[hash].js'
    },
    devServer: {
        port: 9090,
        open: true,
    },
    plugins: [
        new HtmlPlugin({
            template: __dirname+ "/src/index.html"
        }),
        new CleanPlugin(),
    ]
}